package com.xiaoshuidi.cloud.module.report.dal.DO;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 账单明细 DO
 *
 * @author 合房租赁
 */
@TableName("contract_settlement_detail")
@Data
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ContractSettlementDetailDO implements Serializable {

    /**
     * 结算单明细表
     */
    @TableId
    private Long id;
    /**
     * 结算单id
     */
    private Long settlementId;
    /**
     * 费项id
     */
    private Long feeId;
    /**
     * 费项名称
     */
    private String feeName;
    /**
     * 账单金额
     */
    private BigDecimal amount;
    /**
     * 收款金额
     */
    private BigDecimal refundableAmount;
    /**
     * 资金流向 out 流出| in 流入
     */
    private String flowType;
    /**
     * 收款金额
     */
    private BigDecimal collectedAmount;
    /**
     * 账单开始时间
     */
    private LocalDateTime orderStartTime;
    /**
     * 账单结束时间
     */
    private LocalDateTime orderEndTime;
    /**
     * 扩展字段
     */
    private String extension;
    /**
     * 备注
     */
    private String remark;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

}
